home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.000 / crossfir / crossfire-0.92.4.client / newclient.h < prev    next >
Text File  |  1996-04-21  |  4KB  |  129 lines

  1. /*
  2.  * static char *rcsid_newclient_h =
  3.  *   "$Id: newclient.h,v 1.2 1995/11/13 06:28:58 master Exp $";
  4.  */
  5.  
  6. /*
  7.     CrossFire, A Multiplayer game for X-windows
  8.  
  9.     Copyright (C) 1994 Mark Wedel
  10.     Copyright (C) 1992 Frank Tore Johansen
  11.  
  12.     This program is free software; you can redistribute it and/or modify
  13.     it under the terms of the GNU General Public License as published by
  14.     the Free Software Foundation; either version 2 of the License, or
  15.     (at your option) any later version.
  16.  
  17.     This program is distributed in the hope that it will be useful,
  18.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  19.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20.     GNU General Public License for more details.
  21.  
  22.     You should have received a copy of the GNU General Public License
  23.     along with this program; if not, write to the Free Software
  24.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25.  
  26.     The author can be reached via e-mail to master@rahul.net
  27. */
  28.  
  29. /* This file defines various flags that both the new client and
  30.  * newserver uses.  These should never be changed, only expanded.
  31.  * Changing them will likely cause all old clients to not work properly.
  32.  *
  33.  * Name format is CS_(command)_(flag)
  34.  * CS = Client/Server.
  35.  * (command) is protocol command, ie ITEM
  36.  * (flag) is the flag name
  37.  */
  38.  
  39. /* It is trivial to keep a link of copy of this file in the client
  40.  * or server area.  But keeping one common file should make things
  41.  * more reliable, as both the client and server will definately be
  42.  * talking about the same values.
  43.  */
  44.  
  45.  
  46. /* Length flags for ITEM command */
  47.  
  48. #if ERIC_SERVER
  49. #define ERICSERVER 1
  50. #endif
  51.  
  52.  
  53. #define CS_QUERY_YESNO    0x1    /* Yes/no question */
  54. #define CS_QUERY_SINGLECHAR 0x2    /* Single character response expected */
  55. #define CS_QUERY_HIDEINPUT 0x4    /* Hide input being entered */
  56.  
  57. #define CS_SAY_NORMAL    0x1    /* Normal say command */
  58. #define CS_SAY_SHOUT    0x2    /* Text is shouted. */
  59. #define CS_SAY_GSAY    0x4    /* Text is group say command */
  60.  
  61. /* These are multiplication values that should be used when changing 
  62.  * floats to ints, and vice version.  MULTI is integer representatin
  63.  * (float to int), MULTF is float, for going from int to float.
  64.  */
  65. #define FLOAT_MULTI    100000
  66. #define FLOAT_MULTF    100000.0
  67.  
  68. /* ID's for the various stats that get sent across. */
  69.  
  70. #define CS_STAT_HP     1
  71. #define CS_STAT_MAXHP     2
  72. #define CS_STAT_SP     3
  73. #define CS_STAT_MAXSP     4
  74. #define CS_STAT_STR     5
  75. #define CS_STAT_INT     6
  76. #define CS_STAT_WIS     7
  77. #define CS_STAT_DEX     8
  78. #define CS_STAT_CON     9
  79. #define CS_STAT_CHA    10
  80. #define CS_STAT_EXP    11
  81. #define CS_STAT_LEVEL    12
  82. #define CS_STAT_WC    13
  83. #define CS_STAT_AC    14
  84. #define CS_STAT_DAM    15
  85. #define CS_STAT_ARMOUR    16
  86. #define CS_STAT_SPEED    17
  87. #define CS_STAT_FOOD    18
  88. #define CS_STAT_WEAP_SP 19
  89. #define CS_STAT_RANGE    20
  90. #define CS_STAT_TITLE    21
  91. #define CS_STAT_POW    22
  92. #define CS_STAT_GRACE    23
  93. #define CS_STAT_MAXGRACE    24
  94.  
  95. /* The following are the color flags passed to new_draw_info.
  96.  *
  97.  * We also set up some control flags
  98.  *
  99.  * NDI = New Draw Info
  100.  */
  101.  
  102. /* Color specifications - note these match the order in xutil.c */
  103. /* Note 2:  Black, the default color, is 0.  Thus, it does not need to
  104.  * be implicitly specified.
  105.  */
  106. #define NDI_BLACK    0
  107. #define NDI_WHITE    1
  108. #define NDI_NAVY    2
  109. #define NDI_RED        3
  110. #define NDI_ORANGE    4
  111. #define NDI_BLUE    5    /* Actually, it is Dodger Blue */
  112. #define NDI_DK_ORANGE    6    /* DarkOrange2 */
  113. #define NDI_GREEN    7    /* SeaGreen */
  114. #define NDI_LT_GREEN    8    /* DarkSeaGreen,  which is actually paler */
  115.                 /* Than seagreen - also background color */
  116. #define NDI_GREY    9
  117. #define NDI_BROWN    10    /* Sienna */
  118. #define NDI_GOLD    11
  119. #define NDI_TAN        12    /* Khaki */
  120.  
  121. #define NDI_MAX_COLOR    12    /* Last value in */
  122. #define NDI_COLOR_MASK    0xff    /* Gives lots of room for expansion - we are */
  123.                 /* using an int anyways, so we have the space */
  124.                 /* to still do all the flags */
  125.  
  126.  
  127. #define NDI_UNIQUE    0x100    /* Print this out immediately, don't buffer */
  128. #define NDI_ALL        0x200    /* Inform all players of this message */
  129.